<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>thymeleaf入门模板页面</title>
</head>
<body>
欢迎<span th:text="${username}"></span>   访问本网站，乐趣无穷
<br>
<br>
<br>

 <input type="text" name="birth" th:value="${#dates.format(birth,'yyyy-MM-dd')}"/>
<br>
<br>
<br>
<input type="text" name="msg" th:value="${#strings.substring(msg,0,6)}"/>

</body>


</html>